<script setup lang="ts">
import { ping, pong } from '@/api/login/index';

const pi = () => {
  ping({ a: 1 });
};

const po = () => {
  pong({
    b: 1,
    c: [2, 3, 4],
    d: 'hello',
    t: Date.now()
  });
};
</script>

<template>
  <div class="card">
    <button type="button" @click="pi">Ping</button>
    <button type="button" @click="po">Pong</button>
  </div>
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
